package com.yao.sdk.net;

import com.android.volley.Request;
import com.android.volley.RequestQueue;

/**
 * Created by Administrator on 2015/12/1.
 */
public class NetConfig {

    public enum RequestMethod {
        GET(Request.Method.GET),POST(Request.Method.POST);

        private int code;
        RequestMethod(int code) {
            this.code = code;
        }

        public int getCode() {
            return code;
        }
    }

    private RequestQueue requestQueue;

    public RequestQueue getRequestQueue() {
        return requestQueue;
    }

    public void setRequestQueue(RequestQueue requestQueue) {
        this.requestQueue = requestQueue;
    }

    public int getRequestMethod() {
        return requestMethod;
    }

    private int requestMethod = Request.Method.POST;

    public NetConfig setRequestMethod(RequestMethod method) {
        requestMethod = method.getCode();
        return this;
    }



}
